﻿#include <vcl.h>
#pragma hdrstop
#include <jpeg.hpp>
#include <conio.h>
#include <iostream>
#include "mcl_main.h"
#include "Key_Listen.cpp"
#include<windows.h>
#include <sstream>
#include <cstdlib>
using namespace std;
int t=0;
bool flag=0;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Tmcl_Form *mcl_Form;
//---------------------------------------------------------------------------
__fastcall Tmcl_Form::Tmcl_Form(TComponent* Owner)
	: TForm(Owner)
{

}
//---------------------------------------------------------------------------

void __fastcall Tmcl_Form::Button1Click(TObject *Sender)
{
	if(!flag)
	{
		TThread::CreateAnonymousThread([this] {_tmain();})->Start();
		flag=1;
		Button1->Caption="结束程序";
	}
	else
		Application->Terminate();
}
//---------------------------------------------------------------------------

void __fastcall Tmcl_Form::N3Click(TObject *Sender)
{
	ShowMessage("AB MCLive 0.3-Pre Release\n这是一个用Embarcadero C++ Builder 10.3构建的程序，遵循GNU Public Licence V3.0\nBy AbuzzHarbor9999 B站一个没人看的UP主\n永远和祖国站在一起");
}
//---------------------------------------------------------------------------

void __fastcall Tmcl_Form::N4Click(TObject *Sender)
{
	Application->Terminate();
}
//---------------------------------------------------------------------------

void __fastcall Tmcl_Form::Label2Click(TObject *Sender)
{
	if(t<10)
	{
		t++;
//		ShowMessage("");
	}
	else
	{
		ShowMessage("川建国垃圾川建国傻逼Fuck Trump川建国SB特朗普吃屎川建国™");
		t=0;
	}
}
//---------------------------------------------------------------------------

void __fastcall Tmcl_Form::N2Click(TObject *Sender)
{
//	ShowMessage(ExtractFilePath(Application->ExeName));
	String cmd="explorer "+ExtractFilePath(Application->ExeName)+"ScreenShot\\";
//	ShowMessage(cmd);
	string cmds;
	cmds.assign(cmd.begin(),cmd.end());
	system(cmds.c_str());
}
//---------------------------------------------------------------------------

